<template>
  <div class="pay">
    <button @click="onClick()">付钱</button>
  </div>
</template>

<script>
  export default {
    name: 'pay',
    methods: {
      onClick() {
        let notifyUrl = 'http://tietie.natapp1.cc/pay/notify';
        global.FUQIANLA.init({
          app_id: '7WtRkq14IXLSxjrBPoFRVA',
          order_no: '632884683968515584',
          amount: '1',
          channel: 'wx_pay_pub',
          subject: 'h5测  试   数   据 aaa',
          notify_url: notifyUrl,
          extra: {
            openid: 'oKSLs1XwfO3P8JuHQTqraO9OlcUk',
            cb: data => {
              window.alert(JSON.stringify(data));
            }
          }
        });
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
